package cn.itcast.bos.quartz;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.service.take_delivery.PromotionService;

@Service("methodPromotionJob")
@Transactional
public class UserMethodPromotionJob {

	@Autowired
	private PromotionService promotionService;
	
	public void updatePromotion() {
		System.out.println("method invoking~~~~~");
		promotionService.updateStatus(new Date());
	}
}
